﻿<?php

	include template('smartpicker:keywordset');
	
	if(isset($_POST['kw_hidden']))
	C::t('#smartpicker#smartkeyword')->kwinsert($_POST['kwname'], $_POST['kwshortname'], $_POST['kwlevel'], $_POST['kwfather'], $_POST['kwmore']);


	/*抓取数据库中全部数据并输出
	$rel = C::t('#smartpicker#smartkeyword')->kwfetch_all_by_query();
	$result = DB::fetch($rel);
	*/
	$rel = C::t('#smartpicker#smartkeyword')->kwfetch_all();
	debug($rel);
	
	


















?>